<template>
  <v-editComponents :model="model"></v-editComponents>
</template>

<script>
  import editComponents from '@/components/EditComponents/index'
  import { modelMap } from '@/router/page-model'

  export default {
    data() {
      return {
        model: {}
      }
    },
    created() {
      var path = this.$route.path
      path = path.substring(0, path.lastIndexOf('/'))
      this.model = modelMap[path].model
    },
    components: {
      'v-editComponents': editComponents
    }
  }
</script>

<style scoped>
  .line {
    text-align: center;
  }
</style>

